module.exports = options => {
  return async function adminauth(ctx, next) {
    console.log(options,"this is middleware ------");
    
    if (ctx.session.openId) {
      await next()
    } else {
      
      ctx.body = { data: "没有登录" }
    }
  }
}
